//
//  StatisticsCell.m
//  MyProject
//
//  Created by Pei on 16/6/29.
//  Copyright © 2016年 Xiaobo Pei. All rights reserved.
//

#import "StatisticsCell.h"

@implementation StatisticsCell
{
    UILabel *_titleLbl;
    UILabel *_detailLbl;
        
    UILabel *_statusLbl;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.backgroundColor = kWhiteColor;
        
        /*
        _titleLbl = [[UILabel alloc] init];
        _titleLbl.frame = CGRectMake(10.0f, _headerLbl.origin.y, kDeviceWidth-10.0f-10.0f*2.0f-_headerLbl.width-_dateLbl.width, Home_Small_Size+2.0f);
        _titleLbl.text = @"检查任务-专项检查0001";
        _titleLbl.font = kAppFont(Home_Small_Size+2.0f);
        _titleLbl.textColor = kRGB(167, 168, 168);
        [self addSubview:_titleLbl];
        
        _detailLbl = [[UILabel alloc] init];
        _detailLbl.frame = CGRectMake(_titleLbl.origin.x, _titleLbl.bottom+5.0f, kDeviceWidth-10.0f-10.0f*2.0f-_headerLbl.width, Home_Small_Size);
        _detailLbl.text = @"公司-工区   机械";
        _detailLbl.font = kAppFont(Home_Small_Size);
        _detailLbl.textColor = kRGB(167, 168, 168);
        [self addSubview:_detailLbl];
        
        UIImageView *arrowImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"06jiantou-"]];
        arrowImageView.frame = CGRectMake(kDeviceWidth-10.0f/2.0f-10.0f,_detailLbl.origin.y+(Home_Small_Size-(19.0f/2.0f))/2.0f, 10.0f/2.0f, 19.0f/2.0f);
        [self addSubview:arrowImageView];
        
        UIView *centerLineView = [[UIView alloc] initWithFrame:CGRectMake(_titleLbl.origin.x, _detailLbl.bottom+5.0f, kDeviceWidth-10.0f-10.0f*2.0f-_headerLbl.width, 0.5f)];
        centerLineView.backgroundColor = kGreenColor;
        [self addSubview:centerLineView];
        
        _statusLbl = [[UILabel alloc] init];
        _statusLbl.frame = CGRectMake(_titleLbl.origin.x, centerLineView.bottom+8.0f, 200.0f, Home_Small_Size);
        _statusLbl.text = @"专项检查";
        _statusLbl.font = kAppFont(Home_Small_Size);
        _statusLbl.textColor = kRGB(205, 206, 207);
        [self addSubview:_statusLbl];
        
        
        
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(10.0f, 80.0f-0.5f, kDeviceWidth-10*2, 0.5f)];
        lineView.backgroundColor = kGreenColor;
        [self addSubview:lineView];
         */
        
        UIImageView *arrowImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"06jiantou-"]];
        arrowImageView.frame = CGRectMake(kDeviceWidth-10.0f/2.0f-10.0f,(50.0f-(19.0f/2.0f))/2.0f, 10.0f/2.0f, 19.0f/2.0f);
        [self addSubview:arrowImageView];
        
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(10.0f, 50.0f-0.5f, kDeviceWidth-10*2, 0.5f)];
        lineView.backgroundColor = kGreenColor;
        [self addSubview:lineView];
    }
    
    return self;
}


- (void)showWithData:(NSDictionary*)data
{
    
}
@end
